package server

import (
	"github.com/gin-gonic/gin"
	"github.com/go-kratos/kratos/v2/log"
	"github.com/go-kratos/kratos/v2/transport/http"
)


// NewHTTPServer new a HTTP server.
func NewHTTPServer(router *gin.Engine, logger log.Logger) *http.Server {
	httpSrv := http.NewServer(http.Address(":8001"))
	httpSrv.HandlePrefix("/", router)
	return httpSrv
}
